package com.xiaomo.gitee.datamanager.dto.security;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(name = "令牌传递数据模型",description = "用于传递令牌信息",title = "用于传递令牌信息")
public class TokenDTO implements Serializable {

    @Schema(
            title = "token",
            description = "令牌数据",
            format = "string"
    )
    private String token;

    @Schema(
            title = "expireTime",
            description = "有效时间,单位: 天",
            format = "number"
    )
    private Integer validTime;

    @Schema(
            title = "role",
            description = "用户角色",
            format = "string",
            example = "管理员"
    )
    private String role;

    @Serial
    private static final long serialVersionUID = 1L;
}
